package com.fnfn.sdk.api.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.fnfn.sdk.api.entity.Permission;

@Repository
public interface PermissionMapper {
    int deleteByPrimaryKey(Integer cPermissionId);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer cPermissionId);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    Permission selectByPermissionName(String cPermissionName);

    Permission selectByPermissionType(String cPermissionType);

    void removeByPermissionId(Integer cPermissionId);

    List<Permission> selectByCondition(Permission permission);

    List<Permission> selectBasePermission();

    List<Permission> selectByConditionRole(Permission permission);
}